#include<bits/stdc++.h>
#define int long long
using namespace std;
int n,a[100005],s=0;
signed main()
{
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    scanf("%lld",&n);
    for(int i=1;i<=n;i++)
        scanf("%lld",&a[i]);
    sort(a+1,a+1+n);
    for(int i=2,j=1;i<=n;i++)
        if(a[i]>a[j])
            s++,j++;
    printf("%lld\n",n-s);
    return 0;
}
